<?php
class User extends AppModel{
	var $name='User';
	var $validate=array(
		'username' => array(
				'rule' => array('custom', '/^[a-z0-9]{8,15}$/i'),
				'required' => true,
				'message' => '请输入8到15个的字母或数字'
			),
		// 'password' => array(
			// 'rule' => 'alphaNumeric',
			// 'requied' => true,
			// 'message' => 'alphabets and number only'
		// ),
		'email' => array(
			'rule' => 'email',
			'requied' => true,
			'message' => '请输入正确的邮箱地址'
		),
		'regdateline' => array(
			'rule' => 'numeric',
			'required' => true
		)
	);
}

?>